#include <stdio.h>
static int to10(int char16){
	if(char16>='A') return char16-'A'+10;
	else return char16-'0';
}
int main(int argc, char *argv[]){
	if(argc==1) return 0;
	char *p=argv[1];
	while(*p!=0){
		if(*p=='%'){
			int a=p[1], b=p[2];
			putchar(to10(a)*16+to10(b));
			p+=3;
		}else{
			putchar(*p);
			p++;
		}
	}
	return 0;
}

